// 导入express框架
const express = require('express');
// 创建路由实例
const router = express.Router();

// 导入登录相关的处理函数
const settingHandler = require('../router_handler/setting.js');


// 处理上传轮播图的POST请求，路径为'/uploadSwiper'
router.post('/uploadSwiper',settingHandler.uploadSwiper);
// 处理获取轮播图的POST请求，路径为'/getAllSwiper'
router.post('/getAllSwiper',settingHandler.getAllSwiper);
// 处理编辑政策的POST请求，路径为'/editPolicy'
router.post('/editPolicy',settingHandler.editPolicy);
// 处理获取政策的POST请求，路径为'/getPolicy'
router.post('/getPolicy',settingHandler.getPolicy);
// 处理获取单个政策的POST请求，路径为'/getOnePolicy'
router.post('/getOnePolicy',settingHandler.getOnePolicy);
//部门设置
router.post('/setDepartment',settingHandler.setDepartment);
//获取部门
router.post('/getDepartment',settingHandler.getDepartment);
//院系设置
router.post('/setCollege',settingHandler.setCollege);
//获取院系
router.post('/getCollege',settingHandler.getCollege);

// 导出路由模块
module.exports = router;